import packageJson from '../package.json';

const { name, version, config } = packageJson;
export default {
  code: name,
  version,
  width: config.width,
  height: config.height,
  coordinate: {
    x: 0,
    y: 0,
  },
  config: [
    {
      name: '子组件管理',
      code: 'mapSelect',
      type: 'MapSelect',
      value: '',
      enumValue: [],
    },
    {
      name: '地图风格',
      code: 'styleId',
      type: 'Select',
      value: '87895281c6ee33ce40400e410c23dd29',
      enumValue: [
        { value: 'f53373d29d9c38a33c712e2c140b7bcf', key: '默认地图样式' },
        { value: '95818589157c1d35439b09ab43051c8a', key: '清新蓝绿风格' },
        { value: '87895281c6ee33ce40400e410c23dd29', key: '黑夜风格' },
      ],
    },
    {
      name: '地图基础配置',
      code: 'base',
      children: [
        {
          name: '中心点经度(-180~180)',
          code: 'lng',
          value: 106.512432,
          step: 0.1,
          max: 180,
          min: -180,
          type: 'InputNumber',
        },
        {
          name: '中心点纬度(-90~90)',
          code: 'lat',
          value: 29.544045,
          step: 0.1,
          max: 90,
          min: -90,
          type: 'InputNumber',
        },
        {
          name: '默认缩放比例(1~12)',
          code: 'zoom',
          value: 13,
          max: 19,
          min: 1,
          type: 'InputNumber',
        },
        {
          name: '最小缩放比例(1~19) ',
          code: 'minZoom',
          value: 1,
          max: 19,
          min: 1,
          type: 'InputNumber',
        },
        {
          name: '最大缩放比例(1~19) ',
          code: 'maxZoom',
          value: 19,
          max: 19,
          min: 1,
          type: 'InputNumber',
        },
      ],
    },
  ],
  data: {},
  events: {},
  defaultComp: [
    { code: 'custom_demo_group_map_traffic' },
    { code: 'custom_demo_group_map_geo' },
  ],
};
